{% extends 'base.html' %}
{% block body %}
<div class="po_banner" style="height:237px;background:url('/static/img/banner_po.jpg') center center  no-repeat;margin-bottom:50px;">
    </div>
    <div class="w1400 search_main clear">
            <h2>搜索“{{search_key}}”的结果</h2>
        <div class="search_nav">
            <ul class="clear">
                <li class="cur">
                    <h6>
                        产品({{product_pram_len}})
                    </h6>
                </li>
                <li>
                    <h6>
                    下载({{down_load_len}})
                        </h6>
                </li>
                <li>
                    <h6>
                    文章(0)
                    </h6>
                </li>
            </ul>
        </div>
        <div class="search_box">
            <div class="product_box search_data">
                {% if product_pram_len  %}
                    <ul>
                        {% for i in product_pram %}
                        <li class="clear">
                            <div class="img left">
                                <img src="{{i.list_images_url}}">
                            </div>
                            <div class="product_box_txt left">
                                <h2>
                                {{i.title}}
                                </h2>
                                <h4>
                                    产品概述
                                </h4>
                                <p>
                                    {{i.description}}
                                </p>
                                <a href="/product_parm/{{i.id}}">
                                    了解更多
                                </a>
                            </div>
                        </li>
                        {% endfor %}
                    </ul>
                {% else %}
                    <img src="/static/bootstrap4/img/none.jpg">
                {% endif %}

            </div>
            <div class="file search_data">
                {% if down_load_len  %}
                <ul class="clear">
                    {% for i in down_load_list %}
                    <li>
                        <div class="img">
                            <img src="/static/bootstrap4/img/{{i.file_type}}.jpg">
                        </div>
                        <h3>
                            {{i.name}}
                        </h3>
                        <div class="a_box">
                            <a href="{{i.link}}" download="">
                                点击下载
                            </a>
                        </div>

                    </li>
                    {% endfor %}
                </ul>
                {% else %}
                    <img src="/static/bootstrap4/img/none.jpg">
                {% endif %}
            </div>
            <div class="article search_data">
                <img src="/static/bootstrap4/img/none.jpg">
            </div>
        </div>
    </div>
{% endblock %}